package com.ty.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
@TableName("rights")
public class Rights extends BasePojo{
    /*菜单表*/
    @TableId(type = IdType.AUTO)
    private Integer id; //主键id
    private String name; //菜单名称
    private Integer parentId; //父级ID
    private Integer level; //表示层级
    private String path; //跳转路径
    private Integer state; //状态 0表示停用 1表示在线
    @TableField(exist = false)
    private List<Rights> children; //存放下级菜单
}
